With this module, you could easily get water (in fact any conducting liquid) surface level. It is useful in the cases that you need warning if liquid in the holder is less than or over certain amount. More conducting surface of this module in the liquid will conduct more electronic charge. That's how it works.
Another usage of this module is to detect the electroconductivity of liquid. I will give you a simple example later.
Arduino | Water Level Sensor Module |
5V/3V3 | VCC |
A5 (any one among A0~A5) | OUT |
GND | GND |
With our Sensor Shield V7 for Arduino you could plug in and play.
Connect the module with Arduino. Uploading the following code to Arduino:
void setup(){
Serial.begin(9600);
}
void loop(){
Serial.print("Water level Sensor Value:");
Serial.println(analogRead(A5));?
delay(100);
}
Put the module in a glass of water:
Note that the water surface should be below the silver tin lines on the module.
Open serial Monitor and you could read the value.
Now you could add water to the glass, you could see the value increases. Or you could add salt to the water, the value increases too.